<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

      <link href="{{ asset('css/font.css') }}" rel="stylesheet">
      <link href="{{ asset('css/xadmin.css') }}" rel="stylesheet">
      <script src="{{ asset('js/layui.js') }}" defer></script>
      <script src="{{ asset('js/xadmin.js') }}" defer></script>
      <script src="{{ asset('js/app.js') }}" defer></script>
      <script src="{{ asset('js/axios.js') }}" defer></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>

    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  
  <body>
    <div class="x-body layui-anim layui-anim-up">
        <form class="layui-form" method="get" action="/user/shoping">
          <div class="layui-form-item">
              <label for="money" class="layui-form-label">
                  <span class="x-red">*</span>购物金额
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="money" name="money" required="" lay-verify="money"
                  autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="username" class="layui-form-label">
                  <span class="x-red">*</span>购物账号
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="username" name="username" required="" lay-verify="username"
                  autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux">
                  6到16个字符
              </div>
          </div>
          <div class="layui-form-item">
              <label for="L_repass" class="layui-form-label">
              </label>
              <button   type="submit" class="layui-btn" lay-filter="add" lay-submit="">
                  增加
              </button>
          </div>
      </form>
    </div>
    <script type="text/javascript"  src="{{ asset('js/lib/layui/layui.js') }}" ></script>
    <script>
        layui.use(['layer'], function(){
            $ = layui.jquery;

          //自定义验证规则
          form.verify({
              parant: function(value){
                  if(!value){
                      return '请输入推荐人';
                  }
              },
              money: function(value){
                  if(!value){
                      return '请输入金额';
                  }
              },
              username: function(value){
              if(!value){
                return '请输入账号';
              }
            }
          });




        });
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>
